<!DOCTYPE html>  
<html xmlns:th="http://www.thymeleaf.org">  
<head>  
    <meta charset="UTF-8">  
    <title>注册</title>  
</head>  
<body>  
<h1>用户注册</h1>  

<form th:action="@{/user/register}" method="post">  
    <div>  
        <label for="username">用户名:</label>  
        <input type="text" id="username" name="username" required/>  
    </div>  
    <div>  
        <label for="password">密码:</label>  
        <input type="password" id="password" name="password" required/>  
    </div>  
    <div>  
        <label for="email">邮箱:</label>  
        <input type="email" id="email" name="email" required/>  
    </div>  
    <div>  
        <label for="phone">电话:</label>  
        <input type="text" id="phone" name="phone"/>  
    </div>  
    <div>  
        <label for="qq">QQ:</label>  
        <input type="text" id="qq" name="qq"/>  
    </div>  
    <div>  
        <label for="info">附加信息:</label>  
        <input type="text" id="info" name="info"/>  
    </div>  
    <div>  
        <button type="submit">注册</button>  
    </div>  
</form>  

<!-- 显示错误信息 -->  
<div th:if="${error}" style="color:red;">  
    <p th:text="${error}"></p>  
</div> 

</body>  
</html>